package com.violet.myorm.core.sql;

import java.util.List;

public class DeleteSql extends Sql {

    public DeleteSql(String tableName, List<String> where) {
        if (where == null || where.isEmpty()) throw new RuntimeException("必须提供删除条件!");

        sql.append("DELETE FROM ").append(tableName);
        super.setWhere(where);
    }

}
